local sk__danmou = fk.CreateSkill {

  name = "sk__danmou",

  tags = {  },

}



sk__danmou:addEffect(fk.Damaged, {
  anim_type = "masochism",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(sk__danmou.name) and data.from and not data.from.dead and data.from ~= player and
      not (player:isKongcheng() and data.from:isKongcheng())
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    room:doIndicate(player.id, {data.from.id})
    room:swapAllCards(player, {player, data.from}, sk__danmou.name,"h")
  end
})

return sk__danmou